package com.pm.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pm.business.mapper.EnterpriseCertificateMapper;
import com.pm.business.domain.EnterpriseCertificate;
import com.pm.business.service.IEnterpriseCertificateService;

/**
 * 企业证照Service业务层处理
 * 
 * @author zxl
 * @date 2022-05-07
 */
@Service
public class EnterpriseCertificateServiceImpl implements IEnterpriseCertificateService 
{
    @Autowired
    private EnterpriseCertificateMapper enterpriseCertificateMapper;

    /**
     * 查询企业证照
     * 
     * @param certificateId 企业证照主键
     * @return 企业证照
     */
    @Override
    public EnterpriseCertificate selectEnterpriseCertificateByCertificateId(Long certificateId)
    {
        return enterpriseCertificateMapper.selectEnterpriseCertificateByCertificateId(certificateId);
    }

    /**
     * 查询企业证照列表
     * 
     * @param enterpriseCertificate 企业证照
     * @return 企业证照
     */
    @Override
    public List<EnterpriseCertificate> selectEnterpriseCertificateList(EnterpriseCertificate enterpriseCertificate)
    {
        return enterpriseCertificateMapper.selectEnterpriseCertificateList(enterpriseCertificate);
    }

    /**
     * 新增企业证照
     * 
     * @param enterpriseCertificate 企业证照
     * @return 结果
     */
    @Override
    public int insertEnterpriseCertificate(EnterpriseCertificate enterpriseCertificate)
    {
        return enterpriseCertificateMapper.insertEnterpriseCertificate(enterpriseCertificate);
    }

    /**
     * 修改企业证照
     * 
     * @param enterpriseCertificate 企业证照
     * @return 结果
     */
    @Override
    public int updateEnterpriseCertificate(EnterpriseCertificate enterpriseCertificate)
    {
        return enterpriseCertificateMapper.updateEnterpriseCertificate(enterpriseCertificate);
    }

    /**
     * 批量删除企业证照
     * 
     * @param certificateIds 需要删除的企业证照主键
     * @return 结果
     */
    @Override
    public int deleteEnterpriseCertificateByCertificateIds(Long[] certificateIds)
    {
        return enterpriseCertificateMapper.deleteEnterpriseCertificateByCertificateIds(certificateIds);
    }

    /**
     * 删除企业证照信息
     * 
     * @param certificateId 企业证照主键
     * @return 结果
     */
    @Override
    public int deleteEnterpriseCertificateByCertificateId(Long certificateId)
    {
        return enterpriseCertificateMapper.deleteEnterpriseCertificateByCertificateId(certificateId);
    }
}
